package com.yonyougov.devops.cruxcisupport.appport.dto;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;

@Setter
@Getter
@ToString
@ApiModel("新增应用内部端口")
public class AppPortAddRequestDto extends BaseRequestDto {

    @NotNull
    @ApiModelProperty(required = true, value = "应用Id")
    private BigInteger appId;

    @NotEmpty
    @ApiModelProperty(required = true, value = "端口名称")
    private String name;

    @NotNull
    @ApiModelProperty(required = true, value = "应用内部端口")
    private Integer internalPort;

    @NotNull
    @ApiModelProperty(required = true, value = "次序：从0开始")
    private Integer idx;

    @ApiModelProperty(required = false, value = "描述")
    private String remark;
}
